package com.pzl.simplevpindicator;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Created by zl.peng on 2016-03-01.
 */
public class MyFragment extends Fragment {
    String msg;

    public MyFragment(String msg) {
        this.msg = msg;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.pagercontent, null);
        TextView textView = (TextView) root.findViewById(R.id.tv_test);
        textView.setText("TEST "+msg);
        return root;
    }
}
